import java.util.Scanner;

public class Text_1 {
    public static void main(String[] args){
        Scanner year = new Scanner(System.in);
        System.out.println("请输入一个四位数的年份：");
        int Year = year.nextInt();
        if (Year < 1000 || Year > 10000){
            System.out.println("请输入四位数的年份.");
        }
        else{
            if (Year % 4 == 0 || Year % 400 == 0 && Year % 100 == 0){
                System.out.println("这个年份是闰年");
            }
            else{
                System.out.println("这个年份不是闰年");
            }
        }
    }
}
